<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">

<head>
  <title></title>
  <meta charset="utf-8">
  <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  <link rel="stylesheet" href="css/fonts/font-awesome.min.css">
  <link rel="stylesheet" href="css/ui-box.css">
  <link rel="stylesheet" href="css/ui-base.css">
  <link rel="stylesheet" href="css/ui-color.css">
  <link rel="stylesheet" href="css/appcan.icon.css">
  <link rel="stylesheet" href="css/appcan.control.css">
  <link rel="stylesheet" href="css/BaggageTrace.css">
  <link rel="stylesheet" href="css/base.css">
</head>
<body class="um-vp bcF8F8F8" ontouchstart>
    <img src="images/bg.png" style="display:none;" />    
    <canvas id = "watermark" width = "200px"  height = "100px" style="display:none;"></canvas>
    <canvas id = "repeat-watermark"></canvas>
  <main class="bcFFF fs9">
    <ul id="BaggageList" class="BaggageList mb30">

    </ul>
  </main>
</body>
<script src="js/appcan.js"></script>
<script src="js/appcan.control.js"></script>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/z_API.js"></script>

<script>
iG.bgm();
  var http = appcan.locStorage.getVal("baggageHttp");
  var url = http+"zyh_queryByFlightVIP";

  var flightNo = appcan.locStorage.getVal("flightNo");
  var flightDate = appcan.locStorage.getVal("flightDate");
  var destination = appcan.locStorage.getVal("destination");
  
  
  
  var param = {
      flightNo:flightNo,
      flightDate:flightDate,
      destination:destination,
      token:token
  }
  var res = new AJAXRequestData({
    url:url,
    type:"POST",
    data:param
  },function(arr){
    var template = "";
   if(arr.length > 0){
     arr.forEach(function(item,index){
       serialNum = index + 1;
       if(!item.psnName){
         item.psnName = "暂无";
       }
       if(!item.ckiNumber){
         item.ckiNumber = "暂无";
       }
       if(!item.freLoyalLevelName){
         item.freLoyalLevelName = "暂无";
       }
       template += '<li class="listItems pt10 bor_bot2_D7D7D7 pb10 uof">' +
         '<section class="ub ub-pj lh20">' +
         '<div class="ub">' +
         '<p class="w15 h15 lh15 bor_3BBBD7 ml5 mr5 tx-c c3BBBD7"><small class="fs8">'+ serialNum +'</small></p>' +
         '<p class="w61 lh17">' + item.psnName + '</p>' +
         '</div>' +
         '<div class="ub pr5 w100">' +
         '<p class="mt2 icons_style icons_src_BT_status ml5 mr5"></p>' +
         '<p class="w45">行李状态:</p>' +
         '<p>'+ item.bagCurStatusName +'</p>' +
         '</div>' +
         '</section>' +
         '<section class="ub ub-pj lh20">' +
         '<div class="ub">' +
         '<p class="h_inherit icons_style icons_src_BT_card ml5 mr5"></p>' +
         '<p>行李号:</p>' +
         '<p class="pl5">' + item.bagNo + '</p>' +
         '</div>' +
         '<div class="ub pr5 w100">' +
         '<p class="h_inherit icons_style icons_src_BT_membershipCard ml5 mr5"></p>' +
         '<p class="w45">卡等级:</p>' +
         '<p>'+ item.freLoyalLevelName +'</p>' +
         '</div>' +
         '</section>' +
         '<section class="ub ub-pj lh20">' +
         '<div class="ub">' +
         '<p class="h_inherit icons_style icons_src_BT_flight ml5 mr5"></p>' +
         '<p >登机序号:</p>' +
         '<p class="pl5">' + item.ckiNumber + '</p>' +
         '</div>' +
         '<div class="ub pr5 w100">' +
         '<p class="h_inherit icons_style icons_src_BT_cabinClass ml5 mr5"></p>' +
         '<p class="w45">旅客舱位:</p>' +
         '<p>'+ item.cabinClass +'</p>' +
         '</div>' +
         '</section>' +
         '</li>';

     });
     $("#BaggageList").html(template);
   }else{

     notData("#BaggageList");
   }
  });
  
  //操作记录
  var remark = "航班号:" + flightNo + ",到达站三字码:" + destination + ",航班日期:"+flightDate + ",操作时间:" + getNowDateHourMinutes();
  operatingRecord(userName,"高端行李查询",remark); 
</script>

</html>
